package com.landinfo.web.rest;

import com.codahale.metrics.annotation.Timed;
import com.landinfo.service.WordReportService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/api")
public class WordReportResource {

    private final Logger log = LoggerFactory.getLogger(WordReportResource.class);

    private static final String ENTITY_NAME = "wordReport";

    private WordReportService wordReportService;

    public WordReportResource(WordReportService wordReportService){
        this.wordReportService=wordReportService;
    }

    /**
     * GET  /weather-stations : get all the weatherStations.
     *
     * @return the ResponseEntity with status 200 (OK) and the list of weatherStations in body
     */
    @GetMapping("/word-report")
    @Timed
    public String getAllWeatherStations() {

        return wordReportService.export();
    }

}
